<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Student List</title>

        <script type="text/javascript" language="JavaScript1.2" src="stm31.js"></script>
        <style type="text/css">
            <!--
            @import url("../csss/erpstyles.css");
            body {
                background-color: #FFFFCC;
            }
            -->
        </style>
        <link href="file:///C|/Documents and Settings/Administrator/My Documents/NetBeansProjects/ERP/web/csss/erpstyles.css" rel="stylesheet" type="text/css" />
    </head>

    <body>
        <table width="913" border="0" cellspacing="0" cellpadding="0" align="center">

            <tr>
                <td width="913" bgcolor="#FFFFCC"><p >&nbsp;</p>

                    <%@ page import="java.io.*"%>
                    <%@ page import="java.util.*"%>
                    <%@ page import="java.sql.*"%>
                    <%@ page import="com.myapp.struts.dao.*"%>
                    <%@ page import="com.myapp.struts.beans.*"%>
                    </p>
                    <%
            ArrayList al = (ArrayList) request.getAttribute("AL");
            System.out.println("al at Invoice LIST jsp :%" + al);
            if (al != null) {
                Iterator it = al.iterator();

                    %>
                    <form action="./ReceiptsEdit" method="get" name="invlist">
                        <table width="913" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="37"> </td>
                                <td colspan="7"></td>
                            </tr>
                            <tr bgcolor="#FFFFCC">
                                <td height="40" colspan="7" ><div align="center" class="login">Receipts Details </div></td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                                <td width="146">&nbsp;</td>
                                <td width="159">&nbsp;</td>
                                <td width="173">&nbsp;</td>

                                <td width="97">&nbsp;</td>
                                <td width="148">&nbsp;</td>
                                <td width="153">&nbsp;</td>


                            </tr>
                            <tr>
                                <td bgcolor="#7DDF90" class="columnname"><div align="left"></div></td>
                                <td bgcolor="#7DDF90" class="columnname" ><div align="left">Receipt No. </div></td>
                                <td bgcolor="#7DDF90" class="columnname" ><div align="left">Receipt Type </div></td>
                                <td bgcolor="#7DDF90" class="columnname" ><div align="left">Account Head </div></td>

                                <td bgcolor="#7DDF90" class="columnname" ><div align="left">Amount	</div></td>
                                <td bgcolor="#7DDF90" class="columnname" ><div align="left">Receipt Date</div></td>
                                <td bgcolor="#7DDF90" class="columnname" ><div align="left">Narration</div></td>
                            </tr>
                            <tr>
                                <% while (it.hasNext()) {
                                ReceiptsVoucherBean ib = (ReceiptsVoucherBean) it.next();

                                String rno = ib.getReceipt_no();
                                String rtype = ib.getReceipt_type();
                                String rdate = ib.getReceipt_Date();
                                String achead = ib.getAccount_head();
                                String narration = ib.getNarration();
                                String amount = ib.getAmount();



                                %>
                                <td class="tabledata" ></td>
                                <td rowspan="2" class="tabledata" ><div align="left"><%=rno%></div></td>
                                <td rowspan="2" class="tabledata" ><div align="left"><%=rtype%></div></td>
                                <td rowspan="2" class="tabledata" ><div align="left"><%=achead%></div></td>
                                <td rowspan="2" class="tabledata" ><div align="left"><%=amount%></div></td>
                                <td rowspan="2" class="tabledata" ><div align="left"><%=rdate%></div></td>
                                <td rowspan="2" class="tabledata" ><div align="left"><%=narration%></div></td>

                            </tr>
                            <tr>
                                <td class="tabledata" >&nbsp;</td>
                            </tr>
                            <%}
            }%>
                            <tr>
                                <td >&nbsp;</td>
                                <td >&nbsp;</td>
                                <td >&nbsp;</td>
                                <td >&nbsp;</td>

                                <td >&nbsp;</td>
                                <td >&nbsp;</td>
                                <td >&nbsp;</td>

                            </tr>
                        </table>
                    </form>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p></td>
            </tr>
        </table>

    </body>
</html>
